/*    */ package com.zimbra.cs.db;
/*    */ 
/*    */ import com.zimbra.common.localconfig.KnownKey;
/*    */ import com.zimbra.common.localconfig.LC;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class MariaDB
/*    */   extends MySQL
/*    */ {
/* 26 */   DbPool.PoolConfig getPoolConfig() { return new MariaDBConfig(); }
/*    */   
/*    */   protected class MariaDBConfig extends MySQL.MySQLConfig {
/* 29 */     protected MariaDBConfig() { super(); }
/*    */     
/*    */     protected String getDriverClassName()
/*    */     {
/* 33 */       return "org.mariadb.jdbc.Driver";
/*    */     }
/*    */     
/*    */     protected String getRootUrl()
/*    */     {
/* 38 */       String bindAddress = LC.mysql_bind_address.value();
/* 39 */       if (bindAddress.indexOf(':') > -1) {
/* 40 */         bindAddress = "[" + bindAddress + "]";
/*    */       }
/*    */       
/* 43 */       return "jdbc:mysql://" + bindAddress + ":" + LC.mysql_port.value() + "/";
/*    */     }
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/db/MariaDB.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */